<@override name="link">
</@override>
<@override name="body">
    <body class="gray-bg">
        <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-title">
                <h5>流程设置</h5>
                <div class="ibox-tools">
                    <a href="add.html?typeId=${typeId}" class="btn btn-xs btn-primary">
                        新建流程
                    </a>
                </div>
            </div>
            <div class="ibox-content">
                <form action="index.html">
                    <div class="row">
                        <div class="col-sm-9 m-b-xs"></div>
                        <div class="col-sm-3">
                            <div class="input-group">
                                <input type="hidden" name="pageNumber" id="pageNumber" value="${pageable.pageNumber}">
                                <input type="hidden" name="pageSize" id="pageSize" value="${pageable.pageSize}">
                                <input type="text" placeholder="权限的名称" name="key" value="<#if key??>${key}</#if>" class="input-sm form-control">
                                <span class="input-group-btn">
                                        <button type="submit" class="btn btn-sm btn-primary"> 搜索</button>
                                    </span>
                            </div>
                        </div>
                    </div>
                </form>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <td>名称</td>
                            <td>步骤</td>
                            <td>类型</td>
                            <td>状态</td>
                            <td>走向</td>
                            <td>发布人</td>
                            <td>操作</td>
                        </tr>
                    </thead>
                    <tbody>
                        <#list page.contents as flow>
                            <tr>
                                <td>${flow.name}</td>
                                <td>第
                                    <span class="text text-danger" style="font-size: 18px; font-weight: bold;">${flow.num}</span>
                                    步
                                </td>
                                <td>${flow.flowType}</td>
                                <td>${flow.flowStatus}</td>
                                <td>${flow.desc}</td>
                                <td>${flow.issue}</td>
                                <td>
                                    <a href="javascript:;" class="btn btn-xs btn-primary <#if flow.uable>disabled</#if>" data-id="${flow.id}" title="删除">
                                        <i class="fa fa-times-circle"></i>
                                    </a>
                                </td>
                            </tr>
                        </#list>
                    </tbody>
                </table>
            </div>
        </div>
        </div>
    </body>
</@override>
<@override name="script">
</@override>
<@extends name="../base/main.html"/>